﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VRAEWeb.Models;

namespace VRAEWeb.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            using (VRAEBancoModeloDataContext db = new VRAEBancoModeloDataContext())
            {
                List<Cuenta> lista = (from e in db.Cuenta
                                      where e.IdCliente.Equals(1)
                                      select e).ToList<Cuenta>();

                return View(lista);
            }
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
